from nextpy_org import styles
from nextpy_org.templates import template
import nextpy as xt

@template(route="AlertDialog", title="4Components", description="10")
def alert_dialog() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/alertdialog.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Banner", title="4Components", description="10")
def banner() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/banner.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Drawer", title="4Components", description="10")
def drawer() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/drawer.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Menu", title="4Components", description="10")
def menu() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/menu.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Modal", title="4Components", description="10")
def modal() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/modal.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Popover", title="4Components", description="10")
def popover() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/popover.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)

@template(route="Tooltip", title="4Components", description="10")
def tooltip() -> xt.Component:
    relative_path = 'nextpy_org/mdfiles/components/overlay/tooltip.md'
    with open(relative_path, encoding="utf-8") as readme:
        content = readme.read()
    return xt.markdown(content, component_map=styles.markdown_style)